package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: 李旭
 * @create: 2021-07-28 11:29
 **/
@FeignClient(name = "service-activity")
public interface SeckillFeignClient {

    //查询所有秒杀商品集合
    @GetMapping("/api/activity/seckill/list")
    public List<SeckillGoods> list();
    //去秒杀详情页面
    @GetMapping("/api/activity/seckill/{skuId}.html")
    SeckillGoods findSeckillGoodsById(@PathVariable Long skuId);
}
